


#include "myarea.h"

MyArea::MyArea(QWidget *parent):QScrollArea(parent)
{
    layMain = new QVBoxLayout();
    this->setLayout(layMain);
    layCurrent = new QHBoxLayout();
    layMain->addLayout(layCurrent);
}
void MyArea::slotAddButtonLayout(int value)
{
    QPushButton* but = new QPushButton("New");
    layCurrent->addWidget(but);
}
void MyArea::slotAddLayout()
{
    layCurrent = new QHBoxLayout();
    layMain->addLayout(layCurrent);
}
